package com.atguigu.tingshu.album.client;

import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.album.BaseCategory3;
import com.atguigu.tingshu.model.album.BaseCategoryView;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * ClassName: CategoryFeignClient
 * Package: com.atguigu.tingshu.album.client
 * Description:分类的Feign接口
 */
@FeignClient(name = "service-album",path = "/client/album/category",contextId = "CategoryFeignClient")
public interface CategoryFeignClient {
    @GetMapping("/getBaseCategoryView/{category3Id}")
    public BaseCategoryView getBaseCategoryView(@PathVariable(value = "category3Id")Long category3Id);

    @GetMapping("/findTopBaseCategory3/{category1Id}")
    public List<BaseCategory3> findTopBaseCategory3(@PathVariable(value = "category1Id") Long category1Id);
}
